Change default behavior when opening a module.

Is there a way to change the default behavior when double-clicking on the module to open it; I know you can change the menu option?

 

baseWindowMenu.inc
...
...
...


void openReadOnly2() {
        if ( doorsname != "Administrator" ) {
                openReadOnly
        } else {
                Skip selectedItems = getSelectedItems ()
                Item itm = null

                for itm in selectedItems do {
                        if ( null(itm) ) continue
                        if ( isDeleted(itm) ) continue

                        read(rootNameTemp_(itm), true, true)
                }

                delete selectedItems
        }
}

void addOpenMenuItems(){

    createItem(canOpenFolder, openFolder ,LS_("String_Open",NLSTEMP_("Open")), 'O', 'O',modKeyCtrl, null, null, LS_("String_Open_the_selected_folder",NLSTEMP_("Open the selected folder.")),
                         LS_("String_You_must_select_a_folder_to_open",NLSTEMP_("You must select a folder to open.")))

    createMenu(canOpenModuleAny, LS_("String_Open",NLSTEMP_("Open")), 'O', null);

    createItem(canOpenModuleReadOnly ,openReadOnly2 ,LS_("String_Read_only",NLSTEMP_("Read-only")),'R', 'R', modKeyCtrl, null, null, LS_("String_Open_the_selected_module_read_only",NLSTEMP_("Open the selected module read-only.")),
                         LS_("String_You_have_no_access_to_open_the_selected_module_read_only",NLSTEMP_("You have no access to open the selected module read-only.")))

    createItem(canOpenModuleShare, openShare, LS_("String_Shareable_Edit",NLSTEMP_("Shareable Edit")),'S', 'S', modKeyCtrl, null, null, LS_("String_Open_the_selected_module_for_shareable_edit",NLSTEMP_("Open the selected module for shareable edit.")),
                         LS_("String_You_have_no_access_to_open_the_selected_module_for_shareable_edit",NLSTEMP_("You have no access to open the selected module for shareable edit.")));
    createItem(canOpenModuleFull, openEdit, LS_("String_Exclusive_Edit",NLSTEMP_("Exclusive Edit")),'E', 'E', modKeyCtrl, null, null, LS_("String_Open_the_selected_module_for_exclusive_edit",NLSTEMP_("Open the selected module for exclusive edit.")),
                         LS_("String_You_have_no_access_to_open_the_selected_module_for_exclusive_edit",NLSTEMP_("You have no access to open the selected module for exclusive edit.")));

    end menu // Open

}

 


EHcnck - Fri May 05 11:41:19 EDT 2017

Re: Change default behavior when opening a module.
Antonio__Norkus - Mon May 08 05:59:00 EDT 2017

Easiest thing to do is to use the -defopenmode command-line-switch or registry entry...

https://www.ibm.com/support/knowledgecenter/SSYQBZ_9.6.1/com.ibm.doors.configuring.doc/topics/c_clientcommandswitches.html

Re: Change default behavior when opening a module.
EHcnck - Mon May 08 07:18:30 EDT 2017

Antonio__Norkus - Mon May 08 05:59:00 EDT 2017

Easiest thing to do is to use the -defopenmode command-line-switch or registry entry...

https://www.ibm.com/support/knowledgecenter/SSYQBZ_9.6.1/com.ibm.doors.configuring.doc/topics/c_clientcommandswitches.html

That's not very useful not trying to change the edit-mode, trying to change which view is open by default, override view settings.

Re: Change default behavior when opening a module.
Mike.Scharnow - Mon May 08 12:40:39 EDT 2017

EHcnck - Mon May 08 07:18:30 EDT 2017

That's not very useful not trying to change the edit-mode, trying to change which view is open by default, override view settings.

Hm, things like if ( doorsname != "Administrator" ) {openReadOnly} are usually done with triggers. I don't think that the double click event can be redirected to a user specific script.